import * as xml2js from "xml2js";

export class Xml {
    static parse(str: string) {
        return new Promise<any>((reso, reject) => {
            xml2js.parseString(str, (err, res) => {
                if (err)
                    reject(err)
                else
                    reso(res)
            })
        })
    }
}